import {getCate } from "../../request/api"
const state = {
    getCate: []
}
const mutations = {
    changeGetCate(state, res) {
        state.getCate = res;
    }
}
const actions = {
    getCateListActions(context) {
        getCate().then(res => {
            if (res.code === 200) {
                context.commit("changeGetCate", res.list)
            }
        })
    }
}
const getters = {
    getCate(state) {
        return state.getCate;
    }
}

export default {
    state,
    mutations,
    actions,
    getters,
    namespaced: true
}